import { createAPI } from './util';
import config from './config';

const baseUrl = {
  mock: 'https://www.easy-mock.com/mock/5a406cd36b299a5279fc7c3a/baidu',
  dev: 'api/',
  pre: '',
  prod: ''
}[config.env || 'mock'];

export default createAPI(baseUrl);
